package com.quanxiaoha.weblog.web.model.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;

/**
 * @author: 犬小哈
 * @url: www.quanxiaoha.com
 * @date: 2025-01-28 15:00
 * @description: 更新用户个人信息请求VO
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "更新用户个人信息请求VO")
public class UpdateUserProfileReqVO {

    @ApiModelProperty(value = "昵称")
    @Size(max = 60, message = "昵称长度不能超过60个字符")
    private String nickname;

    @ApiModelProperty(value = "头像URL")
    @Size(max = 255, message = "头像URL长度不能超过255个字符")
    private String avatar;

    @ApiModelProperty(value = "个人简介")
    @Size(max = 500, message = "个人简介长度不能超过500个字符")
    private String bio;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式不正确")
    @Size(max = 100, message = "邮箱长度不能超过100个字符")
    private String email;

    @ApiModelProperty(value = "手机号")
    @Size(max = 20, message = "手机号长度不能超过20个字符")
    private String phone;
}
